package com.jiangxjsy.crm.service;

import com.alibaba.fastjson.JSONObject;
import com.jiangxjsy.core.page.BasePage;
import com.jiangxjsy.model.crm.bo.CrmBackLogBO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * wukong-crm-master
 * 蒋胜宇
 * 2025/6/16 14:15
 */

public interface CrmBackLogDealService {
    /**
     * 待办事项数量
     *
     * @param request 请求
     * @param response 响应
     * @return 待办事项数量
     */
    JSONObject num(HttpServletRequest request, HttpServletResponse response);

    /**
     * 今日需联系线索
     *
     * @param crmBackLogBO 请求
     * @param request 请求
     * @param response 响应
     * @return 今日需联系线索
     */
    BasePage<Map<String, Object>> todayLeads(CrmBackLogBO crmBackLogBO, HttpServletRequest request, HttpServletResponse response);

    /**
     * 查询类型ID
     *
     * @param model 模块
     * @param crmType 模块类型
     * @param userId 用户ID
     * @return 类型ID
     */
    List<String> queryTypeId(Integer model, Integer crmType, Long userId);
}
